//
//  LFMarketLeftView.m
//  LoveFruit
//
//  Created by Apple on 16/9/25.
//  Copyright © 2016年 张令林. All rights reserved.
//

#import "LFMarketLeftView.h"

@implementation LFMarketLeftView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
    }
    return self;
}

// 把黄色的条 画出来
- (void)drawRect:(CGRect)rect
{
    
    CGFloat w = 4;
    CGFloat h = 40;
    CGFloat x = 0;
    CGFloat y = (self.bounds.size.height - h) * .5;
    
    // 创建rect
    UIBezierPath* path = [UIBezierPath bezierPathWithRect:CGRectMake(x, y, w, h)];
    [[UIColor primaryYellowColor] set];
    [path fill];
}
@end
